namespace ShareMarking.Entity {
    	using System;
    	
    	
    	/// <summary>
    	/// 表名：ext_ncuser 主键列：nc_code
    	/// </summary>
    	[SerializableAttribute()]
    	public partial class ext_ncuser : MySoft.Data.Entity {
    		
    		protected String _nc_code;
    		
    		protected String _name;
    		
    		/// <summary>
    		/// NC编号
    		/// </summary>
    		public String nc_code {
    			get {
    				return this._nc_code;
    			}
    			set {
    				this.OnPropertyValueChange(_.nc_code, _nc_code, value);
    				this._nc_code = value;
    			}
    		}
    		
    		/// <summary>
    		/// 姓名
    		/// </summary>
    		public String name {
    			get {
    				return this._name;
    			}
    			set {
    				this.OnPropertyValueChange(_.name, _name, value);
    				this._name = value;
    			}
    		}
    		
    		/// <summary>
    		/// 获取实体对应的表名
    		/// </summary>
    		protected override MySoft.Data.Table GetTable() {
    			return new MySoft.Data.Table<ext_ncuser>("ext_ncuser");
    		}
    		
    		/// <summary>
    		/// 获取实体中的主键列
    		/// </summary>
    		protected override MySoft.Data.Field[] GetPrimaryKeyFields() {
    			return new MySoft.Data.Field[] {
    					_.nc_code};
    		}
    		
    		/// <summary>
    		/// 获取列信息
    		/// </summary>
    		protected override MySoft.Data.Field[] GetFields() {
    			return new MySoft.Data.Field[] {
    					_.nc_code,
    					_.name};
    		}
    		
    		/// <summary>
    		/// 获取列数据
    		/// </summary>
    		protected override object[] GetValues() {
    			return new object[] {
    					this._nc_code,
    					this._name};
    		}
    		
    		/// <summary>
    		/// 给当前实体赋值
    		/// </summary>
    		protected override void SetValues(MySoft.Data.IRowReader reader) {
    			if ((false == reader.IsDBNull(_.nc_code))) {
    				this._nc_code = reader.GetString(_.nc_code);
    			}
    			if ((false == reader.IsDBNull(_.name))) {
    				this._name = reader.GetString(_.name);
    			}
    		}
    		
    		public override int GetHashCode() {
    			return base.GetHashCode();
    		}
    		
    		public override bool Equals(object obj) {
    			if ((obj == null)) {
    				return false;
    			}
    			if ((false == typeof(ext_ncuser).IsAssignableFrom(obj.GetType()))) {
    				return false;
    			}
    			if ((((object)(this)) == ((object)(obj)))) {
    				return true;
    			}
    			return false;
    		}
    		
    		public class _ {
    			
    			/// <summary>
    			/// 表示选择所有列，与*等同
    			/// </summary>
    			public static MySoft.Data.AllField All = new MySoft.Data.AllField<ext_ncuser>();
    			
    			/// <summary>
    			/// NC编号 - 字段名：nc_code - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field nc_code = new MySoft.Data.Field<ext_ncuser>("nc_code");
    			
    			/// <summary>
    			/// 姓名 - 字段名：name - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field name = new MySoft.Data.Field<ext_ncuser>("name");
    		}
    	}
    }
